<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style type="text/css">
        table {border-collapse: collapse; font-size: 14px; width: 80%; margin: auto}
        table, th, td {border: 1px solid darkslategray;padding: 10px}
    </style>
</head>
<body>
<a th:href="@{/product/productAdd/}">添加</a>
<table class="list">
    <tr>
        <th>id</th>
        <th>姓名</th>
        <th>价格</th>
        <th>日期</th>
        <th>状态</th>
        <th>权限</th>
    </tr>
    <tr th:each="do : ${product}">
        <td th:text="${do.id}"></td>
        <td th:text="${do.name}"></td>
        <td th:text="${do.jg}"></td>
        <td th:text="${#dates.format(do.birthday,'yyyy-MM-dd')}"></td>
        <td th:text="${do.status}"></td>
        <td th:text="${do.roid}"></td>
        <td>
            <a th:href="@{/product/productDel(id=${do.id})}">删除</a>
            <a th:href="@{/product/productUd(id=${do.id})}">修改</a>
        </td>
    </tr>
</table>

</body>
</html>
